package com.example.android.ui.hb.detail;

import com.example.android.bean.Login;
import com.example.android.bean.SearchHB;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;

public interface HBDetailContract {
    interface IHBDetailModel{
        Flowable<List<SearchHB>> getHBDetail(int hbId);
        Flowable<List<Login.UserInfoDTO>> getRelease(int userId,String token);
    }
    interface IHBDetailPresenter{
        void getHBDetail(int hbId);
        void getRelease(int userId,String token);
    }
    interface IHBDetailView{
        void getHBDetailSuccess(SearchHB searchHB);
        void getReleaseSuccess(Login.UserInfoDTO userInfoDTO);
        void getHBDetailError(Throwable throwable);
        void getReleaseError(Throwable throwable);
    }
}
